package com.own.component.client.property;

import com.own.constant.ConstantRequestManager;
import com.own.constant.ConstantValue;
import lombok.Data;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * TokenProperty
 *
 * @author chenxueli
 * @date 2023-11-07 19:49:39
 */
@Data
@SpringBootConfiguration
@ConfigurationProperties(prefix = ClientProperty.PREFIX)
public class ClientProperty {

    public static final String PREFIX = ConstantValue.CONFIG_VALUE_CONTENT + "client";

    /**
     * 默认的客户端字段名称
     */
    private String field = "client";

    /**
     * 默认的客户端名称
     */
    private String defaultClient = "web";

    /**
     * 数据获取来源
     */
    private ConstantRequestManager.RequestFieldSourceType fieldSourceType = ConstantRequestManager.RequestFieldSourceType.HEADER;

}
